﻿using 示例中体现的ModelBus核心思想.Models.Domain;

namespace 示例中体现的ModelBus核心思想.Services
{
    /// <summary>
    /// 业务服务接口：定义领域操作
    /// 输入输出均为领域模型，与数据层和表现层解耦
    /// </summary>
    public interface IProductService
    {
        Task<Product> GetByIdAsync(Guid id);
        Task<IEnumerable<Product>> GetAllAsync();
        Task<Product> CreateAsync(Product product);
        Task<Product> UpdateAsync(Product product);
        Task DeleteAsync(Guid id);
    }
}
